<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta name="GENERATOR" content="PasDoc 0.11.0">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Crispy Plotter Documentation: CPGraph: Class TCPGraph</title>
<link rel="StyleSheet" type="text/css" href="pasdoc.css">
</head>
<body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#FF0000">
<a name="TCPGraph"></a><h1 class="cio">Class TCPGraph</h1>
<table class="sections wide_list">
<tr>
<td><a class="section"  href="#%40Description">Description</a></td><td><a class="section"  href="#%40Hierarchy">Hierarchy</a></td><td>Fields</td><td><a class="section"  href="#%40Methods">Methods</a></td><td><a class="section"  href="#%40Properties">Properties</a></td></tr></table>
<a name="%40Description"></a><h2 class="unit">Unit</h2>
<p class="unitlink">
<a   href="CPGraph.html">CPGraph</a></p>
<h2 class="declaration">Declaration</h2>
<p class="declaration">
<code>type TCPGraph = class(TObject)</code></p>
<h2 class="description">Description</h2>
<p>
Function graph that is plotted by a plotter control</p>
<a name="%40Hierarchy"></a><h2 class="hierarchy">Hierarchy</h2>
<ul class="hierarchy"><li class="ancestor">TObject</li>
<li class="thisitem">TCPGraph</li></ul><h2 class="overview">Overview</h2>
<a name="%40Methods"></a><h3 class="summary">Methods</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>constructor <b><a   href="CPGraph.TCPGraph.html#Create">Create</a></b>(GraphList: <a   href="CPGraph.TCPGraphList.html">TCPGraphList</a>; Graph: <a   href="CPGraph.TCPGraph.html">TCPGraph</a>); overload;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>constructor <b><a   href="CPGraph.TCPGraph.html#Create">Create</a></b>(GraphList: <a   href="CPGraph.TCPGraphList.html">TCPGraphList</a>; FixedIndex: Integer; Caption: string; PlotFunction: <a   href="CPGraph.html#TCPPlotFunction">TCPPlotFunction</a>); overload;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a   href="CPGraph.TCPGraph.html#Draw">Draw</a></b>(PlotCanvas: <a   href="CPPlotCanvas.TCPPlotCanvas.html">TCPPlotCanvas</a>);</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a   href="CPGraph.TCPGraph.html#InvalidateGraphShape">InvalidateGraphShape</a></b>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a   href="CPGraph.TCPGraph.html#IsPointNear">IsPointNear</a></b>(Position: <a   href="CPBase.html#TCPPoint">TCPPoint</a>) : Boolean;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a   href="CPGraph.TCPGraph.html#SetInterval">SetInterval</a></b>(Left: <a   href="CPBase.html#TCPFloat">TCPFloat</a>; Right: <a   href="CPBase.html#TCPFloat">TCPFloat</a>);</code></td>
</tr>
</table>
<a name="%40Properties"></a><h3 class="summary">Properties</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>property <b><a   href="CPGraph.TCPGraph.html#View">View</a></b>: <a   href="CPView.TCPView.html">TCPView</a> read FView write FView;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a   href="CPGraph.TCPGraph.html#Caption">Caption</a></b>: string read FCaption write SetCaption;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a   href="CPGraph.TCPGraph.html#Color">Color</a></b>: TColor read FColor;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a   href="CPGraph.TCPGraph.html#FixedIndex">FixedIndex</a></b>: Integer read FFixedIndex;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a   href="CPGraph.TCPGraph.html#IntervalLeft">IntervalLeft</a></b>: <a   href="CPBase.html#TCPFloat">TCPFloat</a> read FIntervalLeft;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a   href="CPGraph.TCPGraph.html#IntervalRight">IntervalRight</a></b>: <a   href="CPBase.html#TCPFloat">TCPFloat</a> read FIntervalRight;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a   href="CPGraph.TCPGraph.html#Visible">Visible</a></b>: Boolean read FVisible write SetVisible;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a   href="CPGraph.TCPGraph.html#PlotFunction">PlotFunction</a></b>: <a   href="CPGraph.html#TCPPlotFunction">TCPPlotFunction</a> read FPlotFunction;</code></td>
</tr>
</table>
<h2 class="description">Description</h2>
<h3 class="detail">Methods</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="Create"></a><code>constructor <b>Create</b>(GraphList: <a   href="CPGraph.TCPGraphList.html">TCPGraphList</a>; Graph: <a   href="CPGraph.TCPGraph.html">TCPGraph</a>); overload;</code></td>
</tr>
<tr><td colspan="2">
<p>
Creates a copy of the specified graph  </p>
<h6 class="description_section">Parameters</h6>
<dl class="parameters">
<dt>GraphList</dt>
<dd>Parent graph list</dd>
<dt>Graph</dt>
<dd>Graph, which is to be copied</dd>
</dl>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Create"></a><code>constructor <b>Create</b>(GraphList: <a   href="CPGraph.TCPGraphList.html">TCPGraphList</a>; FixedIndex: Integer; Caption: string; PlotFunction: <a   href="CPGraph.html#TCPPlotFunction">TCPPlotFunction</a>); overload;</code></td>
</tr>
<tr><td colspan="2">
<p>
Creates a new function graph.    </p>
<h6 class="description_section">Parameters</h6>
<dl class="parameters">
<dt>GraphList</dt>
<dd>Parent graph list</dd>
<dt>FixedIndex</dt>
<dd>Fixed index identifying this graph</dd>
<dt>Caption</dt>
<dd>Graph caption</dd>
<dt>PlotFunction</dt>
<dd>Pointer to function that is plotted</dd>
</dl>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Draw"></a><code>procedure <b>Draw</b>(PlotCanvas: <a   href="CPPlotCanvas.TCPPlotCanvas.html">TCPPlotCanvas</a>);</code></td>
</tr>
<tr><td colspan="2">
<p>
Draws graph on the plot canvas using the current view.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="InvalidateGraphShape"></a><code>procedure <b>InvalidateGraphShape</b>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Marks the graph shape as invalid. This results in a rebuild of the internal graph point cache with the next drawing call.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="IsPointNear"></a><code>function <b>IsPointNear</b>(Position: <a   href="CPBase.html#TCPPoint">TCPPoint</a>) : Boolean;</code></td>
</tr>
<tr><td colspan="2">
<p>
Checks if the shape of the function graph is located near the specified point.   function graph and the specified point is smaller than a certain amount of canvas units.</p>
<h6 class="description_section">Parameters</h6>
<dl class="parameters">
<dt>Point</dt>
<dd>in canvas units</dd>
</dl>
<h6 class="description_section">Returns</h6>
<p class="return">The function returns true, if the distance between the</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="SetInterval"></a><code>procedure <b>SetInterval</b>(Left: <a   href="CPBase.html#TCPFloat">TCPFloat</a>; Right: <a   href="CPBase.html#TCPFloat">TCPFloat</a>);</code></td>
</tr>
<tr><td colspan="2">
<p>
Limits drawing of this graph to the specified interval.  If set to -Inf, the interval will have no bound to the left direction.  If set to +Inf, the interval will have no bound to the right direction.</p>
<h6 class="description_section">Parameters</h6>
<dl class="parameters">
<dt>Left</dt>
<dd>Left border of the interval, in which graphs are visible.</dd>
<dt>Right</dt>
<dd>Right border of the interval, in which graphs are visible.</dd>
</dl>
</td></tr>
</table>
<h3 class="detail">Properties</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="View"></a><code>property <b>View</b>: <a   href="CPView.TCPView.html">TCPView</a> read FView write FView;</code></td>
</tr>
<tr><td colspan="2">
<p>
Sets or gets the view</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Caption"></a><code>property <b>Caption</b>: string read FCaption write SetCaption;</code></td>
</tr>
<tr><td colspan="2">
<p>
Textual description of the function graph</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Color"></a><code>property <b>Color</b>: TColor read FColor;</code></td>
</tr>
<tr><td colspan="2">
<p>
Color of the function graph</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="FixedIndex"></a><code>property <b>FixedIndex</b>: Integer read FFixedIndex;</code></td>
</tr>
<tr><td colspan="2">
<p>
Fixed and unique index, which identifies this graph instance in the parent graph list.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="IntervalLeft"></a><code>property <b>IntervalLeft</b>: <a   href="CPBase.html#TCPFloat">TCPFloat</a> read FIntervalLeft;</code></td>
</tr>
<tr><td colspan="2">
<p>
Default left border of the interval, in which graphs are visible. If set to -Inf, the interval will have no bound to the left direction.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="IntervalRight"></a><code>property <b>IntervalRight</b>: <a   href="CPBase.html#TCPFloat">TCPFloat</a> read FIntervalRight;</code></td>
</tr>
<tr><td colspan="2">
<p>
Default right border of the interval, in which graphs are visible. If set to Inf, the interval will have no bound to the right direction.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Visible"></a><code>property <b>Visible</b>: Boolean read FVisible write SetVisible;</code></td>
</tr>
<tr><td colspan="2">
<p>
Visibility state of function graph. If set to true, the function graph is visible; otherwise if false, the function graph is not drawn.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="PlotFunction"></a><code>property <b>PlotFunction</b>: <a   href="CPGraph.html#TCPPlotFunction">TCPPlotFunction</a> read FPlotFunction;</code></td>
</tr>
<tr><td colspan="2">
<p>
Function that is being plotted</p>
</td></tr>
</table>
<hr noshade size="1"><span class="appinfo"><em>Generated by <a  target="_parent" href="http://pasdoc.sourceforge.net/">PasDoc 0.11.0</a> on 2009-07-25 15:33:03</em>
</span>
</body></html>
